Skip to content

OSInfo UIKit & UIDevice #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025
Merged

OSInfo UIKit & UIDevice #160

merged 1 commit into from
Jun 20, 2025

Conversation

melekr
Copy link
Collaborator

@melekr melekr commented Jun 20, 2025

Adds OSInfo conditional import UIKit & guards UIDevice to unblock non-UIKit builds.

Why

SwiftPM / Xcode 16 now compiles each Swift target for the host platform first (macOS in our SauceWebDriverAgent).
OSInfo always imported and used UIDevice, which is now unavailable outside UIKit.

ref: BT-5891

@melekr melekr requested review from konraddysput and rick-bt June 20, 2025 18:54
@melekr melekr self-assigned this Jun 20, 2025
@melekr melekr merged commit 428ae5d into master Jun 20, 2025
4 checks passed
@melekr melekr deleted the bugfix/macos_build branch June 20, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants